package com.hzj.pojo;

import com.hzj.utils.UserUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.text.ParseException;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    private String id;
    private String userName;
    private String pwd;
    private int sex;
    private int age;
    private Date creationDate;


    public void setId() {
        this.id = UserUtils.createUUID();
    }
    public void setCreationDate() throws ParseException {
        this.creationDate = UserUtils.createDate();
    }
}
